import { GET_PROVINCE_LIST } from "./actionsTypes";

export const getProvinceList = data => ({type: GET_PROVINCE_LIST, data: data});

import commonAction from '../../../../../js/actions/commonAction';

//获得各地区数据列表
export const address = (data, callBack) => {
    return commonAction.simplePost(data,'emsc-partner/c/a/all',getProvinceList,callBack);
};

export const setAddAddress = (data, callBack) => {
    return commonAction.simplePost(data,'emsc-partner/b/a/edit',undefined,callBack);
};

